// @import './variables.scss'; // Already imported in style-resources-loader
// @import './mixins.scss'; // Already imported in style-resources-loader
@import './transition.scss';
@import './svgicon.scss';
@import './scrollbar';
@import './tools';
@import './polyfill';

/* Global scss */
.el-input__inner,
.el-date-editor .el-range-input {
  &::placeholder {
    color: rgb(161, 156, 156);
  }

  &::-webkit-input-placeholder {
    /* WebKit browsers 适配谷歌 */
    color: rgb(161, 156, 156);
  }

  &:-moz-placeholder {
    /* Mozilla Firefox 4 to 18 适配火狐 */
    color: rgb(161, 156, 156);
  }

  &::-moz-placeholder {
    /* Mozilla Firefox 19+ 适配火狐 */
    color: rgb(161, 156, 156);
  }

  &:-ms-input-placeholder {
    /* Internet Explorer 10+  适配ie*/
    color: rgb(161, 156, 156);
  }
}

.el-scrollbar .el-scrollbar__wrap {
  overflow-x: hidden;
}

.el-table thead {
  color: rgba(0, 0, 0, 0.85);
}

.el-table {
  color: rgba(0, 0, 0, 0.65);
}

/* .el-pagination {
  padding: 10px 5px;
  background-color: rgba(0, 0, 0, 0.04);
} */

.el-table th {
  background-color: rgba(0, 0, 0, 0.04) !important;
  height: 48px !important;
  font-size: 14px;
}

.el-table__body td {
  height: 48px !important;
}

.el-table th:first-child {
  .cell {
    padding: 0 16px 0 24px !important;
  }
}

.el-table .cell {
  padding: 0 16px !important;
}

.el-table__row td:first-child {
  .cell {
    padding: 0 16px 0 24px !important;
  }
}

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-family: PingFangSC-Regular, -apple-system, BlinkMacSystemFont, Segoe UI,
    Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei,
    Arial, sans-serif;
}

html {
  height: 100%;
  font-size: 14px;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

a,
a:focus,
a:hover {
  color: inherit;
  outline: none;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  @include clearfix;
}

label {
  // 有问题找设计师
  // font-weight: 700;
}

.app-container {
  padding: 20px;
}

.components-container {
  padding: 20px;
  position: relative;
}

// Refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

aside {
  background: #eef1f6;
  color: #2c3e50;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    vertical-align: middle;
    margin-bottom: 10px;
    margin-right: 10px;
  }

  .upload-demo {
    width: 50%;
  }

  .row {
    display: block;
    margin-bottom: 10px;
    margin-right: 10px;
  }
}

.link-type,
.link-type:focus {
  color: rgba(0, 145, 255, 1);
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.table-column-circle {
  height: 8px;
  width: 8px;
  border-radius: 8px;
  display: inline-block;
  margin-right: 8px;

  &.circle-green {
    background-color: rgba(82, 196, 26, 1);
  }

  &.circle-red {
    background-color: rgba(255, 85, 85, 1);
  }

  &.circle-white {
    background-color: rgba(221, 221, 221, 1);
  }

  &.circle-blue {
    background-color: rgba(24, 144, 255, 1);
  }
}

.link-type-warning {
  color: #ff5555;
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;
  }
}

.text-center {
  text-align: center;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(
    90deg,
    rgba(32, 182, 249, 1) 0%,
    rgba(32, 182, 249, 1) 0%,
    rgba(33, 120, 241, 1) 100%,
    rgba(33, 120, 241, 1) 100%
  );

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.no-padding {
  padding: 0px !important;
}

/* el-table固定表头 */
.el-table__fixed::before,
.el-table__fixed-right::before {
  background-color: transparent;
}

/* 穿梭狂 */
.el-transfer-panel {
  width: 400px;
  height: 400px;
}

.el-transfer-panel__list.is-filterable {
  height: 300px;
}

.red {
  color: $red;
}

.ts-content {
  background-color: rgb(255, 255, 255);
  padding: 24px 32px;
  background-color: rgb(242, 241, 246);
  height: 100%;

  .ts-table {
    height: 100%;

    &__content {
      background-color: rgb(255, 255, 255);
      padding: 25px;
      height: 100%;
    }
  }
}

.page-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: auto;
  padding: 16px;
  background: #f2f1f6;

  @at-root &__content {
    padding: 12px;
    flex: 1;
    background: #fff;
  }
}
